package com.chen.business.system.businesssystem.service;

import com.chen.pay.system.paysystem.entity.PayEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * feign调用支付系统
 * @author :master
 */
@Service
@FeignClient("pay-system")
public interface PayFeignServiceImpl {

    /**
     * 支付调用
     * @param payEntity 参数
     * @return 返回
     */
    @RequestMapping("/pay/addPay")
    public String addPay(@RequestBody PayEntity payEntity);

    /**
     * 支付调用
     * @param payEntity 参数
     * @return 返回
     */
    @RequestMapping("/pay/updatePay")
    public String updatePay(@RequestBody PayEntity payEntity);
}
